package com.sumainfor.pc.market.fallback;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sumainfor.common.exception.TCException;
import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.market.feign.BaseFeignEpc;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 功能描述:
 *
 * @Auther: zhlu
 * @Date: 2018/12/19 20:48
 * @Description:
 */

@Component
public class FeignEpcEpcFallback implements BaseFeignEpc {

    @Override
    public JsonResult AddHousingPlan(Map<String, Object> params) {
        return JsonResult.error("工程部服务器繁忙，请稍后重试！");
    }

    @Override
    public JsonResult getHousingPlanList(Map<String, Object> params) {
        return JsonResult.error("工程部服务器繁忙，请稍后重试！");
    }

    @Override
    public JsonResult getHousingPlanAmendList() {
        return JsonResult.error("工程部服务器繁忙，请稍后重试！");
    }

    @Override
    public boolean AddRepair(Map<String, Object> params) {
        return false;
    }

    @Override
    public List<Map<String, Object>> getHousingRepairList(Map<String, Object> params) {
        return new ArrayList<Map<String, Object>>();
    }

    @Override
    public JsonResult getMatketRepairHousing() {
        return JsonResult.error("工程部服务器繁忙，请稍后重试！");
    }

    @Override
    public JsonResult getManagerRepairList(Map<String, Object> params) {
        return JsonResult.error("工程部服务器繁忙，请稍后重试！");
    }

    @Override
    public JsonResult getManagerGmioCount(Map<String, Object> params) {
        return JsonResult.error("工程部服务器繁忙，请稍后重试！");
    }

    @Override
    public JsonResult getManagerGmioCountList(Map<String, Object> params) {
        return JsonResult.error("工程部服务器繁忙，请稍后重试！");
    }

    @Override
    public Map<String, Object> getDecoratePlanTableCount(Integer miId, String startTime, String endTime) {
        throw new TCException("工程部服务器繁忙...");
    }

    @Override
    public Page<Map<String, Object>> selectPlanForSubTable(Long size, Long current, Integer miId, String startTime, String endTime) {
        throw new TCException("工程部服务器繁忙...");
    }

    @Override
    public Page<Map<String, Object>> selectHousingForSubTable(Long size, Long current, Integer miId, String startTime, String endTime) {
        throw new TCException("工程部服务器繁忙...");
    }

    @Override
    public Page<Map<String, Object>> selectCostForSubTable(Long size, Long current, Integer miId, String startTime, String endTime) {
        throw new TCException("工程部服务器繁忙...");
    }

    @Override
    public JsonResult selectPlanHousingTableForAll(Map<String, Object> params) {
        return JsonResult.error("工程部服务器繁忙..");
    }

    @Override
    public JsonResult getHousingConfigList(String hId, String hConId) {
        return JsonResult.error("工程部服务器繁忙..");
    }

    @Override
    public JsonResult searchForEpc(String keyWord, Integer roleId) {
        return JsonResult.error("工程部服务器繁忙..");
    }

    @Override
    public JsonResult getHoRdInteDeviceConList(Map<String, Object> params) {
        return JsonResult.error("工程部服务器繁忙...");
    }

    @Override
    public JsonResult getHouRdRoomList(Map<String, Object> params) {
        return JsonResult.error("工程部服务器繁忙...");
    }

    @Override
    public JsonResult getTenRoom(Map<String, Object> params) {
        return JsonResult.error("工程部服务器繁忙...");
    }

}
